package com.huatai.user.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @program: ht-system
 * @description: 用户角色分配
 * @author: songxiude
 * @create: 2023-02-10 11:43
 **/
@Data
@ApiModel(value = "用户角色分配实体",description = "用户角色分配参数传递实体")
public class UserRoleParamVo {
	@ApiModelProperty("用户id")
	@Min(value = 1,message ="用户id类型错误" )
	private Long userId;

	@ApiModelProperty("角色列表如：[1,2,3]")
	@Size(min = 1,message = "角色列表不能为空")
	private List<Long> roleIds;
}
